-- Showbones mod disable hud when player dies to update bones locations 
-- This re-enables it afterwards

if showbones and showbones.show_hud then
  minetest.register_on_dieplayer(function(player)
    local player_name = player:get_player_name()
    if minetest.check_player_privs(player_name, 'creative') then
      return
    end
    minetest.after(2, showbones.show_hud, player_name)
  end)
end 
